Skip to content

targets/support/iso-bootloader-setup.sh: enable customization for gru… - #33

Open
StefanCristian wants to merge 1 commit into
gentoo:masterfrom
StefanCristian:feature/customize-bootloader-themes
Open

targets/support/iso-bootloader-setup.sh: enable customization for gru…#33
StefanCristian wants to merge 1 commit into
gentoo:masterfrom
StefanCristian:feature/customize-bootloader-themes

Conversation

@StefanCristian

@StefanCristian StefanCristian commented May 13, 2026

Copy link
Copy Markdown

…b theme

In order to use it, just add in your customized spec file something like:

livecd/grub_timeout: 30

livecd/grub_theme: /boot/grub/themes/my_theme/theme.txt

Also changed into quotes, presumably shouldn't impact anything.

@immolo

immolo commented May 19, 2026

Copy link
Copy Markdown
Contributor

Thanks for doing! this very useful for downstreams.

This missing the flags added here as acceptable options though in my first test:

https://github.com/gentoo/catalyst/blob/master/catalyst/targets/livecd_stage2.py#L18

@immolo

immolo commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Tested with both Gentoo and work media to confirm this solves the downstream
issue that was created by the rushed solution Gentoo needed for FODEM 2026.

Thank you for tackling it <3

On the nitpicky side this needs to be squashed into one commit and requires a
commit message explaining what it does and it was needed (linking my commit
and highlighting the hardcoded for Gentoo needs only is acceptable for the why.),
so Gentoo has a record if something ever happens to GH.

@StefanCristian
StefanCristian force-pushed the feature/customize-bootloader-themes branch from 2eaa2db to c6be7ac Compare August 3, 2026 12:11
@immolo

immolo commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Nearly perfect IMO.

Just needs a highlight that it fixes the hardcoded values introduced in 6950b11

This way when a dev looks at this in 5 years time they can quickly understand the full picture of how this feature came to be and thought processes behind each decision.

@immolo

immolo commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

For Gentoo:

Safe to merge once that last nit is added, and no spec changes are required as Gentoo needs are still the default settings.

* introduced livecd/grub_theme spec option to select the GRUB theme
  path used in the generated ISO grub.cfg
* introduced livecd/grub_timeout spec option for the GRUB menu timeout
* kept previous behaviour when options are unset (gentoo_frosted theme
  and 10 second timeout), so existing specs build identically
* registered both options in livecd_stage2.py valid_values, exported to
  iso-bootloader-setup.sh as clst_livecd_grub_theme and
  clst_livecd_grub_timeout by the existing environment
* documented both options in catalyst-spec(5)
* great thanks to @immolo for pointing out a lead trace where
  this could be fixed
* this fixes the hardcoded GRUB theme and timeout values introduced in
  commit 6950b11 (GRUB theme support) by making them configurable
  through the spec file.

Signed-off-by: Stefan Cristian B. <stefan.cristian+git@rogentos.ro>
@StefanCristian
StefanCristian force-pushed the feature/customize-bootloader-themes branch from c6be7ac to aabb093 Compare August 3, 2026 12:54
Comment thread targets/support/iso-bootloader-setup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants